<template>
  <div class="flex flex-col gap-4">
    <a-card :bordered="false" title="基本信息">
      <div class="w-6/12">
        <guat-system-base-info-form layout="vertical" />
      </div>
    </a-card>
    <a-card :bordered="false" title="隐私信息">
      <div class="w-6/12">
        <guat-system-privacy-info-form layout="vertical" />
      </div>
    </a-card>
  </div>
</template>

<script setup lang="ts">
const [GuatSystemBaseInfoForm] = useForm([
  {
    label: "系统标题",
    field: "systemTitle",
    component: "Input",
    props: { defaultValue: "ACM基地积分管理系统" },
  },
  {
    label: "系统版本",
    field: "systemVersion",
    component: "Input",
    props: { defaultValue: "开发版" },
  },
]);
const [GuatSystemPrivacyInfoForm] = useForm([
  {
    label: "关闭系统",
    field: "systemClose",
    component: "Switch",
  },
  {
    label: "关闭系统原因",
    field: "systemCloseReason",
    component: "Textarea",
  },
  {
    label: "隐私政策",
    field: "systemPrivacyText",
    component: "Textarea",
    props: { defaultValue: "系统一切解释权归ACM基地所有" },
  },
]);
</script>

<style scoped></style>
